import { extend } from 'umi-request';
import settings from "../settings.js"

const request = extend({
  prefix: settings.prefix+'/message',
//   prefix: 'http://192.168.31.84:5000/message',
//   prefix: 'http://192.168.31.84:5000/message',
  // prefix: 'http://127.0.0.1:5000/trailer',
//   timeout: 1000,
  headers: {
    'Content-Type': 'multipart/form-data',
  },
});

export async function getTrailerAllMessageByID(trailer_ID){
    return request('/getTrailerAllMessageByID',{
        method: "GET",
        params: {trailer_ID}
    });
}